package com.example.Vehcile;

public class Shape {


    public String square;
    public double a;
    public double b;

    public Shape(String square, int a, int b) {
        this.square = square;
        this.a = a;
        this.b = b;
    }

    public void S(){
        double s=a*b;
        System.out.println(square+"面积是:"+s);
    }
    public void C(){
        double c=2*a+2*b;
        System.out.println(square+"周长是:"+c);
    }


}
